-- GENERATED SPELL FOR [Ironjaw] --


function spell0_18670(pUnit, Event) --@Chilling Howl,n/a--
pUnit:FullCastSpellOnTarget(32918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18670', 15000, 1)
end

function spell1_18670(pUnit, Event) --@Iron Bite,n/a--
pUnit:FullCastSpellOnTarget(32962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18670', 612, 1)
end

function spell2_18670(pUnit, Event) --@Snarl,n/a--
pUnit:FullCastSpellOnTarget(32919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18670', 597, 1)
end

function Sorts_18670(pUnit, Event)
local choix_sorts_18670 = math.random(0, 2)
if choix_sorts_18670 == 0 then
pUnit:RegisterEvent('spell0_18670', 1, 1)
end
if choix_sorts_18670 == 1 then
pUnit:RegisterEvent('spell1_18670', 1, 1)
end
if choix_sorts_18670 == 2 then
pUnit:RegisterEvent('spell2_18670', 1, 1)
end
end

function mob18670_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18670', math.random(1500, 3000), 1)
end

function mob18670_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18670_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18670_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18670, 1, 'mob18670_Action')
RegisterUnitEvent(18670, 2, 'mob18670_Leave')
RegisterUnitEvent(18670, 3, 'mob18670_Kill')
RegisterUnitEvent(18670, 4, 'mob18670_Die')
